package com.zyf.mapper;

import com.zyf.pojo.CheckRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyf.pojo.MedicalTechnology;
import com.zyf.pojo.Register;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author zhenyf
* @description 针对表【check_request】的数据库操作Mapper
* @createDate 2024-10-17 16:06:14
* @Entity com.zyf.pojo.CheckRequest
*/
public interface CheckRequestMapper extends BaseMapper<CheckRequest> {

    /*根据患者病历号和姓名查询，检查项*/
    public List<MedicalTechnology>
    queryCheckReqeustListMapper(@Param("param1") String caseNumber
            ,@Param("param2") String realName);

    /*查询待检查人员列表*/
    public List<Register> queryNoCheckListMapper(
            @Param("param1") String caseNumber
            ,@Param("param2") String realName);

    /*查询某个病人的某个检测项*/
    public MedicalTechnology queryCheckRequsetItemMapper(Integer id);

    /*查询检查进行中病人列表*/
    public List<Register> queryCheckRequestCheckingMapper(
            @Param("param1") String caseNumber
            ,@Param("param2") String realName
            , @Param("param3")String state);

    /*根据挂号id，查询患者的检查项*/
    public List<MedicalTechnology> queryCheckedMedicalMapper(Integer id);

    /*根据检查id查询检查结果*/
    public CheckRequest queryCheckRequestByIdMapper(Integer id);
}




